package com.wx.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * 微信支付订单
 *
 * @author liaogui
 * @date 2023/12/09
 */
@ApiModel("微信支付订单类")
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class WxOrder {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单ID")
    private String id;

    @ApiModelProperty("商品ID")
    private String goodsId;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("订单价格")
    private String orderPrice;

    @ApiModelProperty("用户ID")
    private String openId;

    @ApiModelProperty("用户手机")
    private String mobile;

    @ApiModelProperty("支付类型")
    private String payType;

    /**
     * 交易状态
     * WxPayTradeStateEnum
     * */
    @ApiModelProperty("交易状态")
    private String orderStatus;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("创建时间")
    private Date createdTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("更新时间")
    private Date updatedTime;

}
